/**
 * @file RTE_FunInd.h
 * @brief
 * @author F00
 * @date 2025-05-22
 */

#ifndef RTE_FUNIND_H
#define RTE_FUNIND_H

#include "Common.h"

typedef enum
{
    RTE_Receive_Mode_IDLE, // 无接收
    RTE_Receive_Mode_UART, // UART
    RTE_Receive_Mode_CAN,  // CAN
    RTE_Receive_Mode_SPI,  // SPI
} RTE_Receive_Mode_t;      // 接收模式

typedef enum
{
    RTE_Receive_State_Receiving, // 正在接收
    RTE_Receive_State_Complete,  // 接收成功
    RTE_Receive_State_Fail,      // 接收失败
    RTE_Receive_State_End,       // 接收结束
} RTE_Receive_State_t;           // 接收状态

typedef enum
{
    RTE_FUNIND_UpDateRequest, // 更新请求       0：无请求  1：请求
    RTE_FUNIND_Receive_Mode,  // 接收模式       RTE_Receive_Mode_t
    RTE_FUNIND_Receive_State, // 接收状态       RTE_Receive_State_t
    RTE_FUNIND_MAX_ID,        // Max ID
} RTE_FUNIND_ID;

extern void RTE_Write_FunInd(RTE_FUNIND_ID ID, uint32_t Value);
extern uint32_t RTE_Read_FunInd(RTE_FUNIND_ID ID);

#endif
